<%- @page_title = _('Create a New Project') -%>
<h2><%= @page_title %></h2>
<%- form_for( :project, @project,
              :url => projects_path,
              :html => {:class => 'form-small',
                        :onsubmit => "Field.disable('submit-form'); Element.hide('cancel-form');"}) do |f| -%>
  <div class="form"><!--O .form-->
    <label for="project_title"><%= _('Title') %>:</label>
    <%= f.text_field(:title, :class => 'textfield') %>
    <%= error_message_on(:project, :title) %>
  </div><!--C .form-->
  <div class="form"><!--O .form-->
    <label for="project_description"><%= _('Description') %>:</label>
    <%= f.text_area(:description, :class => 'textfield') %>
    <%= error_message_on(:project, :description) %>
  </div><!--C .form-->
  <div class="form"><!--O .form-->
    <%= submit_tag(_('Create Project'), :class => 'button', :id => 'submit-form') %>
    <%= link_to(_('&laquo; Back to projects'), projects_path, :id => 'cancel-form') %>
  </div><!--C .form-->
<%- end -%>